package domain.entities;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Progresstrackingfollowup entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "progresstrackingfollowup", catalog = "bms")
public class Progresstrackingfollowup implements java.io.Serializable {

	// Fields

	private Integer id;
	private Rcostudyprogresstracking rcostudyprogresstracking;
	private String descripcion;
	private Date fecha;

	// Constructors

	/** default constructor */
	public Progresstrackingfollowup() {
	}

	/** minimal constructor */
	public Progresstrackingfollowup(
			Rcostudyprogresstracking rcostudyprogresstracking) {
		this.rcostudyprogresstracking = rcostudyprogresstracking;
	}

	/** full constructor */
	public Progresstrackingfollowup(
			Rcostudyprogresstracking rcostudyprogresstracking,
			String descripcion, Date fecha) {
		this.rcostudyprogresstracking = rcostudyprogresstracking;
		this.descripcion = descripcion;
		this.fecha = fecha;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "RCOStudyProgressTrackingid", nullable = false)
	public Rcostudyprogresstracking getRcostudyprogresstracking() {
		return this.rcostudyprogresstracking;
	}

	public void setRcostudyprogresstracking(
			Rcostudyprogresstracking rcostudyprogresstracking) {
		this.rcostudyprogresstracking = rcostudyprogresstracking;
	}

	@Column(name = "descripcion")
	public String getDescripcion() {
		return this.descripcion;
	}

	public void setDescripcion(String descripcion) {
		this.descripcion = descripcion;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "fecha", length = 10)
	public Date getFecha() {
		return this.fecha;
	}

	public void setFecha(Date fecha) {
		this.fecha = fecha;
	}

}